package com.mjduan.myBank.record.service.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mjduan.myBank.record.dao.IRecordDao;
import com.mjduan.myBank.record.service.IRecordService;
import com.mjduan.myBank.util.entity.Record;


@Service("RecordServiceImpl")
@Transactional(rollbackFor=Exception.class)
public class RecordServiceImpl implements IRecordService{

	@Autowired
	@Qualifier("RecordDaoImpl")
	private IRecordDao iRecordDao;

	@Override
	public boolean addRecord(Record record) {
		return this.iRecordDao.addRecord(record);
	}

}
